package models;

import javax.persistence.Entity;

import play.data.validation.Required;
import play.db.jpa.Model;

/**
 * Class for table Publisher.
 * @author Elisa
 */
@Entity
public class Publisher extends Model {

	@Required
	public String name;
	public String firstname;
	public String site;
	
	
	
	/**
	 * Constructor with mandatory fields.
	 * 
	 * @param name name
	 */
	public Publisher(final String name) {
		this.name = name;
	}
	
	/**
	 * Constructor with all fields.
	 * 
	 * @param name name
	 */
	public Publisher(final String name, final String site) {
		this.name = name;
		this.site = site;
	}


	
}
